/**
 * @param {string[]} req_skills
 * @param {string[][]} people
 * @return {number[]}
 */
var smallestSufficientTeam = function(req_skills, people) {
    let pattern = req_skills.join('|')
    let reg_skils = new RegExp(pattern,'g')
    let m_skils=[]
    let max = []
    // debugger
    people.forEach((element,index) => {
        m_skils = element.join(',').match(reg_skils)
        console.log("m_skils", m_skils);
    })
    m_skils.forEach((item)=>{
      if(item.length>max.length){
        max = item
      }
    })
    
  };

//-------------test-------->
let req_skills = ["algorithms","math","java","reactjs","csharp","aws"]
let people = [["algorithms","math","java"],["algorithms","math","reactjs"],["java","csharp","aws"],["reactjs","csharp"],["csharp","math"],["aws","java"]]
  
let res = smallestSufficientTeam(req_skills,people)
console.log("team--->",res)